﻿using Hotel_Project.BIZ;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Hotel_Project.HotelForm
{
    public partial class DelUrseForm_Jjh : Form
    {
        public DelUrseForm_Jjh()
        {
            InitializeComponent();
        }

        private void DelUrseForm_Jjh_Load(object sender, EventArgs e)
        {
            new DelUrse_Jjh().push_data(this);
            if (comboBox1.Items.Count!=0)
            {
                comboBox1.SelectedIndex = 0;
            }
        }

        /// <summary>
        /// 删除按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            new DelUrse_Jjh().delUrse(this);
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            new DelUrse_Jjh().push_grid(this);
        }
    }
}
